import request from '@/utils/request'
const BASE='/personnel/team'
export default {
    //班组列表
    list(data){
        return request({
            url: `${BASE}/list`,
            method: 'post',
            data:data
        })
    },
    //删除班组
    deleteTeam(id){
        // console.log(ids);
        return request({
            url: `${BASE}/delete`,
            method: 'post',
            params:{team_id:id}
        })
    },
    //根据id查询
    detailById(id){
        return request({
            url: `${BASE}/detailById`,
            method: 'get',
            params:{team_id:id}
        })
    },
    //修改/新增班组
    updateTeam(data){
        // console.log(introduce);
        return request({
            url: `${BASE}/update`,
            method: 'post',
            params:data
        })
    },
}